<?php

require FCPATH . '/application/controllers/frontend.php';

class City extends Frontend {

    public function __construct() {
	parent::__construct();
    }

    public function index() {
	$market = intval($this->uri->segment(3));
	$this->load_css('frontend_city_index');
	$this->set_js('MARKET',$market);
	$this->load_js(array('lib', 'frontend_city_index'));

	$this->load->model('client_model');

	$lang = $this->get_language();

	$this->rend('city_index', array(
	    'cities' => $this->client_model->cities_by_market($market,$lang)
	));
    }

}
